function selectemployee(){
	var selectEmpStore = new Ext.data.Store({
			url : 'employeeAction!queryCsEmployeeResult.action',
			reader : new Ext.data.JsonReader({
				root : 'pbEmployeeResult.result',
				totalProperty : 'pbEmployeeResult.totalCount'
			}, [{
				name : 'employee_id',
				mapping : 'employee_id'
			}, {
				name : 'emp_cs_code',
				mapping : 'emp_cs_code'
			}, {
				name : 'name',
				mapping : 'name'
			}, {
				name : 'id_card_num',
				mapping : 'id_card_num'
			}])
		});
	selectEmpStore.load();
	
	var sm = new Ext.grid.CheckboxSelectionModel({
				singleSelect : true
			});
	var cm = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(), sm, {
			header : '',
			hidden:true,
			dataIndex : 'employee_id'
		}, {
			header : '员工编号',
			dataIndex : 'emp_cs_code'
		}, {
			header : '姓名',
			dataIndex : 'name'
		}]);
	
	var selectEmpGrid = new Ext.grid.GridPanel({
		autoScroll:true,
		id : 'selectEmpGrid',
		region: 'center',
		tbar:['员工编号:', {
				xtype:'textfield',
				id:'empCsCodeSelelct',
				name:'empCsCode'
			},{xtype:"tbseparator"},
			'员工姓名:',{
				xtype:'textfield',
				id:'nameSelelct',
				name:'name'
			},{xtype:"tbseparator"},
			{
				xtype : 'button',
				text : '查询',
				handler : function() {
					selectEmpStore.on('beforeload', function() {
						selectEmpStore.baseParams = {
							'pbEmployeeFilter.empCsCode' : Ext.getCmp('empCsCodeSelelct').getValue(),
							'pbEmployeeFilter.name' : Ext.getCmp('nameSelelct').getValue(),
							'pbEmployeeFilter.startIndex' : 20,
							'pbEmployeeFilter.endIndex' : 0
						}
					});
					selectEmpStore.reload();
				}
			}],
		sm : sm,
		cm : cm,
		store : selectEmpStore,
		loadMask : true,
		loadMask : {
			msg : '正在加载数据...'
		},
		frame : true,
		clicksToEdit : 1,
		bbar:new Ext.PagingToolbar({
			pageSize:pageSize,
			store:selectEmpStore,
			displayInfo:true,
			dispalyMsg:'显示第{0}条到{1}条记录，一共{2}条',
			emptyMsg:'没有记录'
			})
	});
	
	//选择员工主窗口-------------------------------------------------------------------------------------------
	var selectEmployeeWin = new Ext.Window({
		layout:'border',
		closable : true,
		draggable : true,
		id:'selectEmployeeWin',
		title : '员工查询',
		width : 450,
		height : 350,
		closeAction : 'hide',
		plain : true,
		items : [selectEmpGrid],
		buttons : [{
					text : '选择',
					id : 'btnSelect',
					handler : function() {
						var selectRecords = selectEmpGrid.getSelectionModel().getSelections();
						var selectLength = selectEmpGrid.getSelectionModel().getSelections().length;
						for(var j = 0; j < selectLength; j++){
							empDimissionDetailWin.findById('employeeId').setValue(selectRecords[j].data.employee_id);
							empDimissionDetailWin.findById('empCsCode').setValue(selectRecords[j].data.emp_cs_code);
							empDimissionDetailWin.findById('name').setValue(selectRecords[j].data.name);
					
						};
						selectEmployeeWin.hide();
					}
				}]
	});
	
	return selectEmployeeWin;
}